/**
 * order
 * @param  {[type]} sequelize [description]
 * @param  {[type]} DataTypes [description]
 * @return model
 */
export default (sequelize, DataTypes) => sequelize.define('comment', {
  id: {
    type: DataTypes.UUID,
    primaryKey: true
  },
  user_id: {
    type: DataTypes.UUID,
    references: {
      model: 'users',
      key: 'id'
    }
  },
  order_id: {
    type: DataTypes.UUID,
    references: {
      model: 'orders',
      key: 'id'
    }
  },
  content: DataTypes.STRING(100)
})
